<%--
  Created by IntelliJ IDEA.
  User: 沐硕
  Date: 2024/5/7
  Time: 11:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<!-- ① 添加用户 -->
<h2>添加用户</h2>
<form action="addUser.jsp" method="post">
    用户名: <input type="text" name="username" required><br>
    其他信息: <input type="text" name="otherInfo"><br>
    <input type="submit" value="添加用户">
</form>

<!-- ② 查询用户 -->
<h2>查询用户</h2>
<form action="searchUser.jsp" method="get">
    查询条件: <input type="text" name="query"><br>
    <input type="submit" value="查询">
</form>

<!-- ③ 查询结果显示 -->
<h2>查询结果</h2>
<table>
    <tr>
        <th>用户编号</th>
        <th>用户名</th>
        <th>操作</th>
    </tr>
    <!-- 查询结果从数据库中获取并展示 -->
    <tr>
        <td>1</td>
        <td>user1</td>
        <td><a href="userDetails.jsp?id=1">查看详情</a></td>
    </tr>
    <!-- 其他查询结果行 -->
</table>
</body>
</html>
